package xyz.wongs.gry.synx.index
/**
 * @ClassName
 * @Description
 * @author WCNGS@QQ.COM
 * @Github <a> https://github.com/rothschil</a>
 * @date 2020/12/21 10:58
 * @Version 1.0.0
 */

def age =18

switch (age){
    case 0..17:
        println('未成年')
        break
    case 18..35:
        println('青年')
        break
    case 36..59:
        println('中年')
        break
    default:
        println('老年')
        break
}

